package com.cyclinggle.cloud.config;

import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * @Project       : ch3-4-eureka-server
 * @Program Name  : com.cyclinggle.cloud.config.SecurityConfig.java
 * @Description   : 默认开启了csrf校验, 对于非界面应用应将其禁用
 * @Author        : wangchao
 * @Creation Date : 2019年3月17日 下午10:54:28 
 * @ModificationHistory  
 * Who          When             What 
 * ----------   -------------    -----------------------------------
 * wangchao     2019年3月17日        create
 */
@EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter {
	@Override
	protected void configure(HttpSecurity http) throws Exception {
		super.configure(http);
		http.csrf().disable();
	}
}
